Skip to content

fix(packaging): ship AppStream metainfo so software centres show the licence - #800

Merged
DeepDiver1975 merged 1 commit into
mainfrom
fix/appstream-metainfo
Oct 27, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
fix/appstream-metainfo

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #799.

GNOME Software and KDE Discover listed the installed .deb as Unknown License ("may be proprietary"), with no description, screenshots or age rating. They read all of that from AppStream metainfo, which the package didn't carry. This ports CodeForFire/freizeichen#18, where the result was checked on GNOME.

What changes

packaging/linux/build-deb.sh installs /usr/share/metainfo/de.codeforfire.lagebuch.metainfo.xml. It carries:

  • project_license MIT, plus a German summary (the desktop entry's Comment) and a short description from the README intro
  • homepage (codeforfire.github.io), bug tracker and source links
  • the Einsatzdatei type application/x-lagebuch
  • an OARS rating (empty: no telemetry, no social features)
  • the release version
  • five README screenshots: Startseite, Einsatztagebuch, Kräfte, Atemschutzüberwachung, PDF-Bericht

Two details:

  • Id: de.codeforfire.lagebuch, the macOS bundle identifier. <launchable> ties it to lagebuch.desktop.
  • Screenshot URLs: they point at the release tag (raw.githubusercontent.com/…/v${VERSION}/docs/screenshots/), so every release shows its own screenshots. The Linux leg only builds from v* tags, so the URL always exists.

The script validates the file with appstreamcli validate --no-net when appstreamcli is present, the same pattern as the existing desktop-file-validate. The release workflow now installs appstream, so the check runs in CI.

What this can't fix: a .deb opened in a software centre before installing still shows an unknown licence and size. PackageKit's apt backend hard-codes "unknown" as the licence for every package (backends/apt/apt-job.cpp, emitPackageDetail).

Verification

  • Published linux-x64 and ran build-deb.sh 0.9.1 … with the arguments from release.yml. The script's own appstreamcli validate passed.
  • appstreamcli validate with network checks passes on the extracted file, and all five screenshot URLs at v0.9.1 return 200 image/png.
  • zizmor . is clean, and towncrier check finds the changelog entry.
  • No src/ change, so make ci wasn't run.
  • Checked by hand in GNOME Software 51 on Debian forky/sid, comparing main's package with this one, both installed. The installed app's page now shows the MIT licence, the five screenshots, the description, the age rating and the links. To repeat this, run gnome-software --quit after installing (the background service caches metadata). appstreamcli get de.codeforfire.lagebuch shows the metadata without the GUI.
    • A side finding: neither package installs on forky/sid as built, because it only has libicu78 and the ICU list stops at 76. That's debian: libicu missing #801. These test packages had libicu78 added locally; that change isn't part of this PR.

Before / after (installed app in GNOME Software)

Before (main): Unknown License, no screenshots, no age rating.

Before: GNOME Software shows Unknown License, no screenshots and no age rating

After (this branch): screenshots, description, age rating, MIT licence, website and issue tracker.

After: Lagebuch's page with the screenshot carousel, the German description and an age rating

After: MIT licence ("Community Built"), age rating, project website and Report an Issue

🤖 Generated with Claude Code

…licence

GNOME Software and KDE Discover listed the installed .deb as "Unknown
License — may be proprietary", with no description, screenshots or age
rating: they read all of that from AppStream metainfo, which the package
did not carry.

build-deb.sh now installs de.codeforfire.lagebuch.metainfo.xml: the MIT
licence, a German summary and description, homepage, bug tracker and
source links, the Einsatzdatei MIME type, an OARS rating, the release and
five README screenshots fetched at the release tag. The id is the macOS
bundle identifier. The script validates the file with appstreamcli when it
is installed, as it does the desktop entry, and the release workflow now
installs it.

A .deb opened before installing still shows an unknown licence: PackageKit's
apt backend reports "unknown" for every package.

Closes #799

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@DeepDiver1975 DeepDiver1975 added the packaging Release, distribution and code-signing infrastructure label Oct 27, 2026
@DeepDiver1975
DeepDiver1975 merged commit 0a32c8c into main Oct 27, 2026
17 checks passed
@DeepDiver1975
DeepDiver1975 deleted the fix/appstream-metainfo branch October 27, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packaging Release, distribution and code-signing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship AppStream metainfo in the .deb so software centres show the licence

1 participant